<%--
  Created by IntelliJ IDEA.
  User: 12700
  Date: 2025/9/4
  Time: 20:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员中心</title>
    <link rel="stylesheet" href="../../css/couriers1.css">
    <script type="text/javascript" src="../../js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var username = localStorage.getItem('savedUsername');
            $("<img src='../../images/touxiang.png'><p>"+username+"</p>").appendTo(".admincontroller");
            $("[value='确认']").click(function () {
                var id = new URLSearchParams(window.location.search).get("id");
                var status = $("#status").val();
                $.get("../../couriers/updatestatus",{"id":id,"status":status},function (b) {
                    if(b){
                        alert("修改成功！");
                        window.location.href="Admins.jsp";
                    }else{
                        alert("修改失败！");
                        window.location.href="Admins.jsp";
                    };
                });
            });
            $("[value='返回']").click(function () {
                window.location.href="Admins.jsp";
            });
            $("[value='退出登录']").click(function () {
                window.location.href="../../index.jsp";
            });
        });
    </script>
</head>
<body>
<div class="head">
    <div class="icon"><img src="../../images/logo.png"></div>
    <div class="admin">
        <div class="admincontroller"></div>
        <div class="adminshow">
            <div><b>个人中心</b></div>
            <div><b>更多通知</b></div>
            <div><input type="button" value="退出登录"></div>
        </div>
    </div>
</div>
<div class="body">
    <div class="body-left">
        <img src="../../images/adv.jpg">
    </div>
    <div class="body-right">
        <div class="label">
            <div class="label-bar">
                <a href="usersadmin.jsp"><div class="unselected">用户管理</div></a>
                <a href="couriersadmin.jsp"><div class="unselected">物流员管理</div></a>
                <a href="Admins.jsp"><div class="selected">包裹查询</div></a>
            </div>
            <div class="label-box">
                <div class="bot">
                    <div>
                        <b>请选择要更改的状态:</b><br>
                        <select name="status" id="status">
                            <option value="运送中">运送中</option>
                            <option value="已接收">已接收</option>
                        </select><br>
                        <input type="button" value="确认"><input type="button" value="返回">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>